import $axios from '../utils/request'

// 注册
export const registerApi = (data) => {
  return $axios({
    url: '/user/register',
    method: 'post',
    data
  })
}

// 登录
export const loginApi = (data) => {
  return $axios({
    url: '/user/login',
    method: 'post',
    data
  })
}
